package com.woniu.his.sms.client;

import com.woniu.his.result.Result;
import com.woniu.his.sms.client.param.AddRegistrationRankClientParam;
import com.woniu.his.sms.client.param.QueryRegistrationRankClientParam;
import com.woniu.his.sms.client.param.UpdateRegistrationRankClientParam;
import com.woniu.his.sms.client.result.PageRegistrationRankResult;
import com.woniu.his.sms.client.result.RegistrationRankResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;

/**
 * @version: java version 1.8
 * @Author: ZJH
 * @description:
 * @date: 2022-11-26 15:04
 */
@FeignClient(contextId = "SmsRegistrationRankClient",name = "sms",path = "sms")
public interface SmsRegistrationRankClient {

    /**
     * 新增挂号等级
     * @param param
     */
    @PostMapping("addRegistrationRank")
    Result addRegistrationRank(@RequestBody AddRegistrationRankClientParam param);

    /**
     * 根据ids删除挂号级别
     * @param rankIds
     */
    @DeleteMapping("deleteRegistrationRankByIds")
    Result deleteRegistrationRankByIds(@PathVariable("rankIds") List<Long> rankIds);

    /**
     * 分页模糊查询挂号级别
     * @param param
     * @return
     */
    @PostMapping("queryRegistrationRank")
    Result<PageRegistrationRankResult> queryRegistrationRank(@RequestBody QueryRegistrationRankClientParam param);

    /**
     * 所有挂号级别
     *
     * @return
     */
    @GetMapping("queryAllRegistrationRank")
    Result<List<RegistrationRankResult>> queryAllRegistrationRank();

    /**
     * 更新挂号级别信息
     * @param param
     * @return
     */
    @PutMapping("updateRegistrationRank")
    Result<RegistrationRankResult> updateRegistrationRank(@RequestBody UpdateRegistrationRankClientParam param);
}
